package org.dreamwork.plugins.network.assistant

import com.intellij.openapi.project.Project
import com.intellij.openapi.wm.ToolWindow
import com.intellij.openapi.wm.ToolWindowFactory
import com.intellij.ui.content.Content
import com.intellij.ui.content.ContentFactory
import org.dreamwork.plugins.network.assistant.gui.MainFrame

class MyWindowFactory : ToolWindowFactory {
    override fun createToolWindowContent (project: Project, window: ToolWindow) {
        val frame = MainFrame ()
        val contentFactory = ContentFactory.SERVICE.getInstance()
        val content: Content = contentFactory.createContent(frame.content, "", false)
        window.contentManager.addContent (content)
    }
}